package spring.in.action.chapter_03.primary;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

public interface IDessert
{

}

@Component
@Primary // 辨识首选的Bean，不建议使用，局限性有点大
class Cake implements IDessert
{
}

@Component
class Cookies implements IDessert
{
}

@Component
class IceCream implements IDessert
{
}